package work.base.data.enum_eg;

/**
 * @author Sakura Shen
 * @description
 * @date 2021/8/2
 */
public enum PlatformTypes {
    None(0),

    CRM(1),

    APP(2),

    All(3);

    private int value;

    PlatformTypes(int value)
    {
        this.value = value;
    }

    public int getValue()
    {
        return value;
    }

    private  static final PlatformTypes[] valueArray = new PlatformTypes[10];

    static {
        for(PlatformTypes val : PlatformTypes.values()) {
            valueArray[val.value] = val;
        }
    }

    public static PlatformTypes parse(int val) {
        return valueArray[val];
    }

}

